package org.meow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.meow.entity.Article;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

  @Select("select * from t_article where article_group_id= #{id}")
  List<Article> getArticlesByCateId(Integer id);

}
